import scrapy


class A58tcSpider(scrapy.Spider):
    name = '58tc'
    allowed_domains = ['https://jining.58.com/sou/?key=%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91']
    start_urls = ['https://jining.58.com/sou/?key=%E5%89%8D%E7%AB%AF%E5%BC%80%E5%8F%91/']

    def parse(self, response):
        span = response.xpath('//div[@id="filter"]/div[@class="tabs"]/a/span')
        print('===========================================')
        print(span.extract())